package com.example.kt_all.viewmodel

import com.example.kt_all.bean.req.OpListBeanReq
import com.example.kt_all.bean.resp.OpListResp
import com.example.kt_all.repo.AllRepo
import com.example.kt_common.base.BaseViewModel
import com.example.kt_common.network.RespStateData

/**
 * Created by 小陈 on 2025/4/2.
 * Time: 17:58.
 */
class AllViewModel(private val repo: AllRepo) : BaseViewModel() {
    var opListData = RespStateData<OpListResp>()
    fun getOpList(opListBeanReq: OpListBeanReq) {
        launch(block = {
            repo.getOpList(opListBeanReq, opListData)
        })
    }
}